package com.boco.webmaster.mainframe.action;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

public class MainFrameJspHelper {
    public MainFrameJspHelper() {
    }

    public static ArrayList getDisplay(HttpServletRequest request) {
        ArrayList list = new ArrayList();

        int display = com.boco.webmaster.common.web.JspHelper.getScreenWidth(request);
        String leftFrameWidth = "13%";
        String rightFrameWidth = "87%";
        String topFrameHeight = "13%";
        String bottomFrameHeight = "85%";
        if (display == 1280) {
            leftFrameWidth = "9%";
            rightFrameWidth = "91%";
            topFrameHeight = "9%";
            bottomFrameHeight = "91%";
        } else if (display == 1600) {
            leftFrameWidth = "8%";
            rightFrameWidth = "92%";
            topFrameHeight = "8%";
            bottomFrameHeight = "92%";
        }

        list.add(leftFrameWidth);
        list.add(rightFrameWidth);
        list.add(topFrameHeight);
        list.add(bottomFrameHeight);
        return list;
    }
}
